package fun.taostool.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("device_info")
public class DeviceInfoEntity extends Model<DeviceInfoEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer euId;
    private Integer eContId;
    private String locationCode;


    private String assetNo;

    private String assetRack;

    private String assetPosition;

    private Integer status;

    private Date createDate;

    private Integer createUser;

    private String customCode;

    private String capitalCustomCode;

    private Integer deviceTypeId;

    private String name;

    private Integer enableState;

    private Date enableDate;

    private Integer runState;

    private String physicsId;

    private Integer energyId;

    private Integer infoId;

    private String rfId;

    private String remarks;

    private String sn;

    private String brand;

    private Integer model;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal batterySize;

    private Integer enable;

    private Integer manufacturer;

    private Date wareTime;

    private Integer unit;

    private String department;

    private Date inventTime;

    private Integer resource;

    public Integer getEContId() {
        return eContId;
    }

    public void setEContId(Integer eContId) {
        this.eContId = eContId;
    }

    public String getLocationCode() {
        return locationCode;
    }

    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }
}
